Repository navigation
fix(mcp): preserve transport event deadline values and provenance - #437
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
maurycy
left a comment
There was a problem hiding this comment.
Confirmed against tnt-api: LineDetentionLastFreeDayChangedTransportEventCreator writes the deadline into value_timestamp and the report time into timestamp, so reading value as the deadline is correct.
maurycy
left a comment
There was a problem hiding this comment.
Verified a3f4c0e against all five review threads. The requested code, typing, guidance, and final MCP response regression coverage are addressed. Approving the changes. The failing MCP preview 2026-07-28 check still needs investigation before merge: fixture discovery fails on list_shipments before the tool eval cases run.
|
@maurycy, about the "MCP preview 2026-07-28" failure in your approval note: this PR doesn't cause it. The live eval credential is broken for every run, on PRs and on main.
The fix is to rotate I also checked this branch against current main (2e2f997, which now includes #420, #438, #439, #440 and #441). It merges cleanly, with no conflicts. On the merged tree, |
Brings in #434, #437 and #444. The only conflict was the generated Postman collection: took main's copy and regenerated it from the merged docs/openapi.json with openapi-to-postmanv2@6.3.0. SDK types, MCP filter schemas and SDK reference docs regenerate unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fixture Main's #437 event-value test expected get_container to report the legacy flat pickup_lfd. This branch reads the deadline only from import_deadlines.pod.unified, so the fixture now supplies that value and a different legacy value, keeping the check that event values never replace the container's own deadline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up — a3f4c0e
Addressed Maurycy's review: active-only milestones/categories and compact summaries; withdrawn history retained in the full timeline; concrete latest-event/formatter types; opaque reported JSON preserved only at the two event-value paths; final-response tests on both tools; shorter tool description with detailed guidance in the query resource. All five review threads answered and resolved. Remote checks pending; no merge or live customer verification.
Summary
Fixes DEV-13524: preserve public transport-event
value,data_source, andinvalidated_atinstead of discarding them during MCP formatting.For
container.detention_lfd_line.changed, the deadline is the API'svalue, nottimestamp. Pickup LFD remains separate and unchanged. This fixes information loss where an event is reported; it does not establish carrier coverage or promise an empty-return deadline for every container. No t49/backend changes, agent prompt changes, auth changes, or SQL-tool dependencies.Verification
npm run checkpasses (existing lint warnings remain).git diff --checkpasses.Need help on this PR? Tag
@codesmith-botwith what you need.The PR appears safe to merge, with non-blocking fixes recommended for structured values and the snapshot return type.
Fix with agent prompt
Summary
Preserves reported transport-event values, sources, and withdrawal dates in timeline and compact snapshot responses.
Reviews (1) · Last reviewed commit: "fix(mcp): preserve transport event value..." · Reviewed by Greptile